//
//  GZ_Music.h
//  B段项目
//
//  Created by 高哲 on 15/11/5.
//  Copyright © 2015年 谢美娜. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "SHD_Header.h"
typedef void (^myBlock)(CGFloat, CGFloat, CGFloat);

@protocol passTimeDelegate <NSObject>
-(void)passValue:(CGFloat)progress passTotleTime:(CGFloat)totleTime passCurrentTime:(CGFloat )current;
@end


@interface GZ_Music : NSObject

@property(nonatomic, strong)AVPlayer *player;
@property(nonatomic, strong)NSString *cuttentURL;
@property(nonatomic, assign)NSInteger flag;
@property(nonatomic, assign)CGFloat currentTime;
@property(nonatomic, assign)CGFloat totleTime;
+ (GZ_Music *)shareInstance;
- (void)playMusicWith:(NSString *)urlString;
-(void)stopMusic;
-(void)playMusic;
@property(nonatomic, assign)id<passTimeDelegate>delegate;
@property(nonatomic, copy)myBlock block;



@end
